NDesk.Options Namespace > OptionSet Class > Add Method : Add<T>(String,String,Action<T>) Method |
'Declaration
Public Overloads Function Add(Of T)( _ ByVal prototype As System.String, _ ByVal description As System.String, _ ByVal action As System.Action(Of T) _ ) As OptionSet
'Usage
Dim instance As OptionSet Dim prototype As System.String Dim description As System.String Dim action As System.Action(Of T) Dim value As OptionSet value = instance.Add(Of T)(prototype, description, action)
public OptionSet Add<T>( System.string prototype, System.string description, System.Action<T> action )
public function Add( prototype: System.String; description: System.String; action: System.Action ): OptionSet;
public function Add( prototype : System.String, description : System.String, action : System.Action ) : OptionSet;
public: OptionSet* Add<T>( System.string* prototype, System.string* description, System.Action<T*>* action )
public: OptionSet^ Addgeneric<typename T> ( System.String^ prototype, System.String^ description, System.Action<T^>^ action )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2